<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-for</title>
    <script src="../js/vue2.js"></script>
</head>

<body>
    <div id="app">
        <input type="button" v-for="(value,index) in info" :value="value.listval" @click="dianji(value.listval)"><br><br>
        <span>{{count}}</span>
    </div>
</body>
<script>
    var ms = new Vue({
        el: "#app",
        data: {
            info: [
                { listval: '点击' },
                { listval: '切换' },
                { listval: '滑动' },
                { listval: '触摸' },
                { listval: '双击' },
                { listval: '单击' },
                { listval: '全选' },
                { listval: '反选' },
                { listval: '彀中' },
                { listval: '删除' },
            ],
            count: 10000
        },
        methods: {
            dianji(val){
                this.count= val;
            }
        }
    })
</script>

</html>